local ShopViewHelper = {}

function ShopViewHelper.getShopListByTab(tab)
    local result = {}
    local shop = require("config.shop")
    local len = shop.length()
    for i = 1, len do
        local cfg = shop.indexOf(i)
        if cfg.tab == tab then
            table.insert(result, cfg)
        end
    end
    return result
end

return ShopViewHelper
